<template>
  <h3>这里是父组件</h3>
  <a-button @click="handleClick">父组件按钮</a-button>
  <Children1 ref="child" age="19" @handleChangeAge="handleChangeAge" @changeName="changeName" />
</template>
<script setup>
import Children1 from '@/views/table/table1/components/Children1.vue'

const child = ref()
const handleClick = () => {
  child.value.changeBtnValue()
}

child.changeBtnValue
const handleChangeAge = (age) => {
  console.log('age', age)
}
const changeName = (name) => {
  console.log('name', name)
}
</script>
<style></style>
